package com.example.test.dto;

/**
 * 日期：2022/11/5
 * 作者：flag
 * 功能：常用返回值枚举
 */
public enum ResultCode {
    SUCCESS(0, "success"),
    ERROR(-1, "failed");

    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public int getCode() {
        return code;
    }
}

